package com.ziyun.pop.mall.module.exception;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

/**
 * 异常处理类 接口
 */
/**
 *
 */
@Controller
public class ExceptionController {

	/**
	 * 处理404异常
	 */
	@GetMapping("error/notFound.do")
	@ResponseBody
	public ModelAndView notFound(){
		return new ModelAndView("/error/notFound.html");
	}

	/**
	 * 空指针异常处理
	 */
	@GetMapping("error/nullPointer.do")
	@ResponseBody
	public ModelAndView nullPointer(){
		return new ModelAndView("/error/notFound.html");
	}

}
